package Parser;
/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class MalformedStackElement {
    private Token token;
    private boolean marked;
    private int index;

    public MalformedStackElement(Token t, boolean mark) {
        token = t;
        marked = mark;
        index = -1;
    }

    public MalformedStackElement(Token t, boolean mark, int i) {
        token = t;
        marked = mark;
        index = i;
    }

    public int getIndex()
    {
        return index;
    }

    public Token getToken()
    {
        return token;
    }

    public boolean isMarked()
    {
        return marked;
    }
}
